# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=font-misc-cyrillic
pkgver=1.0.4
pkgrel=1
pkgdesc="X.org misc cyrillic fonts"
url="https://xorg.freedesktop.org/"
arch="noarch"
license="custom"
options="!check"
depends="encodings font-alias mkfontscale fontconfig"
makedepends="font-util-dev bdftopcf"
source="https://www.x.org/releases/individual/font/font-misc-cyrillic-$pkgver.tar.xz"
subpackages="$pkgname-doc"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-mapfiles=/usr/share/fonts/util \
		--with-fontdir=/usr/share/fonts/cyrillic
	make
}

package() {
	make DESTDIR="$pkgdir" \
		MKFONTDIR=: \
		MKFONTSCALE=: \
		FCCACHE=: \
		install

	install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

sha512sums="
fb2102805fedbd04b1533b85abcde79f432b97b72822bcfcdc09f525488d0d0c63815c8c25b79bab864bbe11fa1b72e2c34f5ba7b96eee1b6c84b841bb333353  font-misc-cyrillic-1.0.4.tar.xz
"
